package com.hbnu.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hbnu.system.model.entity.Award;
import com.hbnu.system.model.entity.User;
import com.hbnu.system.model.query.AwardPageQuery;
import com.hbnu.system.model.vo.AwardVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2023-05-16
 */
public interface AwardMapper extends BaseMapper<Award> {

    IPage<AwardVO> schoolGetRelateAwardQuery(
            @Param("page") Page<AwardVO> page,
            @Param("awardPageQuery") AwardPageQuery query,
            @Param("user") User user
    );

    // 院级审核员查询：指定参数名为page、awardPageQuery、dept
    IPage<AwardVO> collegeGetRelateAwardQuery(
            @Param("page") Page<AwardVO> page,
            @Param("awardPageQuery") AwardPageQuery query,
            @Param("user") User user
    );

    // 用户查询：指定参数名为page、awardPageQuery、userId
    IPage<AwardVO> userGetRelateAwardQuery(
            @Param("page") Page<AwardVO> page,
            @Param("awardPageQuery") AwardPageQuery query,
            @Param("user") User  user
    );

    IPage<Award> schoolExportRelateAwardQuery(
            @Param("page") Page<Award> page,
            @Param("awardPageQuery") AwardPageQuery query,
            @Param("user") User user
    );

    IPage<Award> collegeExportRelateAwardQuery(
            @Param("page") Page<Award> page,
            @Param("awardPageQuery") AwardPageQuery query,
            @Param("user") User user
    );

    IPage<Award> userExportRelateAwardQuery(
            @Param("page") Page<Award> page,
            @Param("awardPageQuery") AwardPageQuery query,
            @Param("user") User user
    );

}
